/**
 * 文件名: MessageService.java
 * 版    权：  Copyright  LiJinHua  All Rights Reserved.
 * 描    述: [常量类]
 * 创建人: LiJinHua
 * 创建时间:  2014-1-18
 * 
 * 修改人：LiJinHua
 * 修改时间:2014-1-18  下午4:58:34
 * 修改内容：[修改内容]
 */
package im.device.config;

import android.app.Service;
import android.content.Context;
import android.content.Intent;
import android.os.IBinder;

/**
 * @author LiJinHua
 * @modify 2014-1-18  下午4:58:34
 */
public class MessageService extends Service {

    
    /**
     * 启动服务
     * @author LiJinHua
     * @modify 2013-12-3  下午3:17:54
     * @param context
     */
    public static void startService(Context context){
        Intent service = new Intent(context, MessageService.class);
        context.startService(service);
    }
    
    /**
     * @author LiJinHua
     * @modify 2014-1-18  下午4:58:34
     */
    public MessageService() {
        // TODO Auto-generated constructor stub
    }

    /* (non-Javadoc)
     * @see android.app.Service#onBind(android.content.Intent)
     */
    @Override
    public IBinder onBind(Intent intent) {
        // TODO Auto-generated method stub
        return null;
    }
    
    @Override
    public void onCreate() {
        // TODO Auto-generated method stub
        super.onCreate();
    }
    
    @Override
    public void onStart(Intent intent, int startId) {
        // TODO Auto-generated method stub
        super.onStart(intent, startId);
        AppMessage.open(getApplicationContext());
    }

}
